from unittest import TestCase
import os

import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'application.settings')


# Create your tests here.
class TestDjangoRun(TestCase):

    def test_run(self):
        # BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
        # sys.path.append(BASE_DIR)
        # print(sys.path)

        # django启动核心函数
        django.setup()

        from personal.models import Skill

        skills = Skill.objects.all()
        print(skills)

        self.assertEqual(True, True)
